package com.dhsc.controller.jyjk.zxyc;

import com.dhsc.domain.jkzx.zxjh.*;
import com.dhsc.domain.yypt.LayuiTableVo;
import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.service.jyjk.zxyc.IJklxszService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description:监控类型设置
 * @Author: CDW
 * @Date: 2023/9/20 15:53
 */
@Controller
@RequestMapping("/jyjk/zxycjk")
public class JklxszController {

    @Autowired
    private IJklxszService jklxszService;

    /**
     * @Description:查询监控项目字典信息
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW 
     * @Date: 2023/9/14 13:23
     * @param j: 
     */
    @ResponseBody
    @RequestMapping(value="/selectDictionaryInfo")
    public ResponseObject selectDictionaryInfo(JkxmZdVo j){
        return jklxszService.selectDictionaryInfo(j);
    }

    /**
     * @Description:激活启用或禁用账户实名制异常规则
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW 
     * @Date: 2023/9/14 13:23
     * @param j: 
     */
    @ResponseBody
    @RequestMapping(value="/updateZRuleActivate")
    public ResponseObject updateZRuleActivate(JhbsVo j){
        return jklxszService.updateZRuleActivate(j);
    }

    /**
     * @Description:删除异常监控规则
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW 
     * @Date: 2023/9/14 13:23
     * @param z: 
     */
    @ResponseBody
    @RequestMapping(value="/delZRuleInfo")
    public ResponseObject delZRuleInfo(ZRuleVo z){
        return jklxszService.delZRuleInfo(z);
    }

    /**
     * @Description:监控项目重算
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW 
     * @Date: 2023/9/14 13:23
     * @param z: 
     */
    @ResponseBody
    @RequestMapping(value="/againdataurl")
    public ResponseObject againdataurl(ZRuleVo z){
        return jklxszService.againdataurl/**/(z);
    }

    /**
     * @Description:监控项目试算
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW 
     * @Date: 2023/9/14 13:23
     * @param z: 
     */
    @ResponseBody
    @RequestMapping(value="/trialdataurl")
    public ResponseObject trialdataurl(ZRuleVo z){
        return jklxszService.trialdataurl(z);
    }

    /**
     * @Description:查询阀值字典表
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW 
     * @Date: 2023/9/15 10:36
     * @param z: 
     */
    @ResponseBody
    @RequestMapping(value="/selectFZDictionary")
    public ResponseObject selectFZDictionary(ZRuleVo z){
        return jklxszService.selectFZDictionary(z);
    }

    /**
     * @Description:通过id查询账户实名制异常监控
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW 
     * @Date: 2023/9/15 10:36
     * @param z: 
     */
    @ResponseBody
    @RequestMapping(value="/selectzruleinfoById")
    public ResponseObject selectzruleinfoById(ZRuleVo z){
        return jklxszService.selectzruleinfoById(z);
    }

    /**
     * @Description:新增或修改账户实名制异常规则
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW 
     * @Date: 2023/9/15 10:36
     * @param z: 
     */
    @ResponseBody
    @RequestMapping(value="/setZruleinfo")
    public ResponseObject setZruleinfo(ZRuleVo z){
        return jklxszService.setZruleinfo(z);
    }

    /**
     * @Description:查询异常编号是否存在
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW 
     * @Date: 2023/9/15 10:36
     * @param z: 
     */
    @ResponseBody
    @RequestMapping(value="/queryHaveAbnormalid")
    public ResponseObject queryHaveAbnormalid(ZRuleVo z){
        return jklxszService.queryHaveAbnormalid(z);
    }

    /**
     * @Description:查询异常监控阀值
     * @return: com.dhsc.domain.yypt.LayuiTableVo
     * @Author: CDW 
     * @Date: 2023/9/15 17:51
     * @param f: 
     */
    @ResponseBody
    @RequestMapping(value="/selectzthresholdinfo")
    public LayuiTableVo selectzthresholdinfo(FzszVo f){
        return jklxszService.selectzthresholdinfo(f);
    }

    /**
     * @Description:设置异常监控阀值
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW 
     * @Date: 2023/9/15 17:51
     * @param f: 
     */
    @ResponseBody
    @RequestMapping(value="/setZthreshold")
    public ResponseObject setZthreshold(FzszVo f){
        return jklxszService.setZthreshold(f);
    }

    /**
     * @Description:异常流水
     * @return: com.dhsc.domain.yypt.LayuiTableVo
     * @Author: CDW
     * @Date: 2023/9/15 17:51
     * @param j:
     */
    @ResponseBody
    @RequestMapping(value="/anomalywater")
    public LayuiTableVo anomalywater(JkyclsVo j){
        return jklxszService.anomalywater(j);
    }
            
}
